package com.tansuo365.test1.bean.otherbean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.tansuo365.test1.bean.InfoData;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 申购主表 关联多个申购详细
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShengouZong implements Serializable,InfoData {
    //暂时没这样用到这个
    @Transient
    private List<ShengouDetails> shengouDetailsList = null;//申购单物料集合

    private Integer id;

    private String wuliaoshengoudanhao;

    private String xiangmumingcheng;

    private String shengoumingcheng;

    private String shenhezhuangtai;

    private String shangbaozhuangtai;

    private String beizhu;

    private String founder;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createtime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updatetime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Transient
    private String s_btime;
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Transient
    private String s_etime;

    @Transient
    private String sort;
    @Transient
    private String order;

    private String candelete;  //是否可删除 0为默认可删除, 1为已审核的,或者已被关联的,不可删除

}